#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time       :   11:39
# Author     : Y4
# Site       : 
# File       : 02 字符串-切片.py
# Software   : PyCharm

msg = '奥黛丽看起来像一只黑天鹅'

print(msg[0:3])  # 奥黛丽
print(msg[3:])

print(msg[0:10:2])  # 每隔两个数一遍    奥丽起像只
